package com.study.talk.netty.message;


import java.io.Serializable;




public abstract class TalkMessage implements Serializable {

    public static final long serialVersionUID = 4444888857825673346L;
    private final byte version = 1;

    protected String dateTime;

    public abstract byte getType();

    public TalkMessage(String dateTime) {
        this.dateTime = dateTime;
    }

    public byte getVersion() {
        return version;
    }

    public String getDateTime() {
        return dateTime;
    }

    public void setDateTime(String dateTime) {
        this.dateTime = dateTime;
    }

    public TalkMessage() {
    }
}
